package edu.towson.greenteam;

import edu.towson.greenteam.comment.Comments;
import edu.towson.greenteam.menu.Menu;
import edu.towson.greenteam.offer.Offers;
import edu.towson.greenteam.order.Orders;
import edu.towson.greenteam.tab.Tabs;
import edu.towson.greenteam.table.Tables;

public class InformationAggregator {

    private Offers currentOffers;
    private Tables currentTables;
    private Comments currentComments;
    private Menu currentMenu;
    private Orders currentOrders;
    private Tabs currentTabs;

    public InformationAggregator() {
        currentOffers = new Offers();
        currentTables = new Tables();
        currentComments = new Comments();
        currentMenu = new Menu();
        currentOrders = new Orders();
        currentTabs = new Tabs();

        getOrders().addObserver(getTables());
        getOrders().addObserver(getMenu());
    }

    public final Offers getOffers() {
        return currentOffers;
    }

    public final Tables getTables() {
        return currentTables;
    }

    public final Comments getCustComments() {
        return currentComments;
    }

    public final Menu getMenu() {
        return currentMenu;
    }

    public final Orders getOrders() {
        return currentOrders;
    }

    public final Tabs getTabs() {
        return currentTabs;
    }
}
